2.2 Starting a Router  
  2.2.8 Router command history  
The user interface provides a history or record of commands that have been entered. This feature is particularly useful for recalling long or complex commands or entries. With the command history feature, the following tasks may be completed:
  • Set the command history buffer size
  • Recall commands
  • Disable the command history feature

The command history is enabled by default and the system records ten command lines in its history buffer. To change the number of command lines the system records during a terminal session, use the terminal history size or the history size command. The maximum number of commands is 256.

To recall commands in the history buffer beginning with the most recent command, press Ctrl-P or the up arrow key repeatedly to recall successively older commands. To return to more recent commands in the history buffer, after recalling commands with Ctrl-P or the up arrow, press Ctrl-N or the down arrow key repeatedly to recall successively more recent commands.

When typing commands, as a shortcut, the unique characters may be entered for a command. Press the Tab key, and the interface will finish the entry. When the typed letters uniquely identify the command, the Tab key simply acknowledges visually that the router has understood the specific command that was intended.

On most computers additional select and copy functions are available. A previous command string may be copied and then pasted or inserted as the current command entry.

 

Interactive Media Activity

Drag and Drop: Router Command History

When the student has completed this activity, the student will be able to identify the correct usage for keystrokes relating to router command history.

   
 

Web Links

Basic Command-Line Interface Commands

http://www.cisco.com/en/US/products/sw/ iosswrel/ps1835/products_command_reference_ hapter09186a00800ca73c.html#xtocid21